package sanshi.contect.abstractfactory.abstract01.people;

import sanshi.contect.abstractfactory.abstract01.AbstractFactory;
import sanshi.contect.abstractfactory.abstract01.Food;
import sanshi.contect.abstractfactory.abstract01.Vehicle;
import sanshi.contect.abstractfactory.abstract01.Weapon;

public class PeopleFactory extends AbstractFactory {
    @Override
    public Food createFood() {
        return new Bread();
    }

    @Override
    public Vehicle createVehicle() {
        return new Car();
    }

    @Override
    public Weapon createWeapon() {
        return new AK47();
    }
}
